Skip to content

Conversation

@ef4
Copy link
Contributor

@ef4 ef4 commented Sep 16, 2014

The line wrapper considers trailing space part of a word, so it will bump words to the next line when they really would have fit.

This change tracks the amount of trailing space in the word so we can choose to only wrap when the word itself would overflow beyond the available width.

Here is a document that shows the same text rendered before and after this code change.

The line wrapper considers trailing space part of a word, and so it will
bump words to the next line when they really would have fit.
@lukasvan3l
Copy link

I believe I'm running into this same issue here. This PR is hopelessly outdated, I'm afraid I'll have to redo this same exercise on the current codebase.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants